package sessionBeanTest;

import interfaceBeanRemote.sessionAvancementRemote;
import interfaceBeanRemote.sessionClubAmisRemote;
import interfaceBeanRemote.sessionClubRemote;

import java.util.List;

import javax.naming.Context;
import javax.naming.InitialContext;
import javax.persistence.EntityManager;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import entityBean.Clubami;

public class ClubAmisTest {

	Context ctx4;
	sessionClubAmisRemote clubAmisBean;
	sessionClubRemote clubBean;
	EntityManager em;

	@Before
	public void setUp() throws Exception {
		ctx4= new InitialContext();

		ctx4.addToEnvironment(InitialContext.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
		ctx4.addToEnvironment(InitialContext.URL_PKG_PREFIXES,"org.jboss.naming:org.jnp.interfaces");
		ctx4.addToEnvironment(InitialContext.PROVIDER_URL,"jnp://localhost:1099");
		clubAmisBean=(sessionClubAmisRemote) ctx4.lookup("sessionClubAmis/remote");
		clubBean = (sessionClubRemote)ctx4.lookup("sessionClub/remote");

	}
	/*
	public interface sessionClubAmisRemote {

		void addClubAmi(Clubami clubAmi);

		void refresh(Clubami ca);

		void flush();

		List<Integer> getClubAmis(int id_club);

	}
	 */

	@After
	public void tearDown() throws Exception {



	}
	
	@Test
	public void testAddClubAmi(){

		Clubami clubami = new Clubami();
		clubAmisBean.addClubAmi(clubami);

	}
	@Test
	public void testGetClubAmis(){


	}


}
